#pragma once

#include <QObject>
#include <QTcpServer>
#include <QDebug>
#include <QTcpSocket>


class Tcpserver : public QObject
{
	Q_OBJECT

public:
	Tcpserver(QObject *parent);
	~Tcpserver();

	Tcpserver();

protected slots:
	void newConnectionSlot();
	void errorStringSlot();
	void sendMsg();


private:
	
	QTcpServer* m_tcpServer;
	QTcpSocket* m_tcpSocket;


};
